﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_COMPANY
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_COMPANY
   {
        private int? _id;
        private string _COMPANY_CODE;
        private string _SHORT_NAME;
        private string _TRAVEL_SECTOR;
        private string _DIVISION;
        private string _DEPARTMENT;
        private string _CREATE_USER_NAME;
        private DateTime? _CREATE_TIME;
        private string _UPDATE_USER_NAME;
        private DateTime? _LAST_UPDATE_TIME;



        public HCRS_COMPANY()
        {}


        public HCRS_COMPANY(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                _COMPANY_CODE=dr["COMPANY_CODE"].ToString();
                _SHORT_NAME=dr["SHORT_NAME"].ToString();
                _TRAVEL_SECTOR=dr["TRAVEL_SECTOR"].ToString();
                _DIVISION=dr["DIVISION"].ToString();
                _DEPARTMENT=dr["DEPARTMENT"].ToString();
                _CREATE_USER_NAME=dr["CREATE_USER_NAME"].ToString();
                if(dr["CREATE_TIME"].ToString()!="")_CREATE_TIME=Convert.ToDateTime(dr["CREATE_TIME"].ToString());
                _UPDATE_USER_NAME=dr["UPDATE_USER_NAME"].ToString();
                if(dr["LAST_UPDATE_TIME"].ToString()!="")_LAST_UPDATE_TIME=Convert.ToDateTime(dr["LAST_UPDATE_TIME"].ToString());


            }
        }



        #region 公共属性 


         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("COMPANY_CODE")]
         public string COMPANY_CODE
         {
             get { return _COMPANY_CODE; }
             set { _COMPANY_CODE = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("SHORT_NAME")]
         public string SHORT_NAME
         {
             get { return _SHORT_NAME; }
             set { _SHORT_NAME = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("TRAVEL_SECTOR")]
         public string TRAVEL_SECTOR
         {
             get { return _TRAVEL_SECTOR; }
             set { _TRAVEL_SECTOR = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("DIVISION")]
         public string DIVISION
         {
             get { return _DIVISION; }
             set { _DIVISION = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("DEPARTMENT")]
         public string DEPARTMENT
         {
             get { return _DEPARTMENT; }
             set { _DEPARTMENT = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("CREATE_USER_NAME")]
         public string CREATE_USER_NAME
         {
             get { return _CREATE_USER_NAME; }
             set { _CREATE_USER_NAME = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("CREATE_TIME")]
         public DateTime? CREATE_TIME
         {
             get { return _CREATE_TIME; }
             set { _CREATE_TIME = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("UPDATE_USER_NAME")]
         public string UPDATE_USER_NAME
         {
             get { return _UPDATE_USER_NAME; }
             set { _UPDATE_USER_NAME = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("LAST_UPDATE_TIME")]
         public DateTime? LAST_UPDATE_TIME
         {
             get { return _LAST_UPDATE_TIME; }
             set { _LAST_UPDATE_TIME = value; }
         }



        #endregion


    }
    #endregion
}
